const obj = {
  _name: "yz",
  get name() {
    return this._name
  },
  set name(newValue) {
    this._name = newValue
  }
}
// receiver用来改变this
const objProxy = new Proxy(obj, {
  get: function(target, key, receiver) {
    console.log("get访问", receiver);
    console.log(receiver === objProxy);
    return Reflect.get(target, key, receiver)
  },
  set: function(target, key, newValue, receiver) {
    Reflect.get(target, key, newValue, receiver)
  }
})

console.log(objProxy.name);
